package com.example.demo.thread;

import org.springframework.cglib.proxy.InvocationHandler;

import java.lang.reflect.Method;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * @author chenchao
 * @desc
 * @date 2022/2/16 16:27
 */
public class InvocationHandlerA implements InvocationHandler {

    private Object object;

    InvocationHandlerA(Object target) {
        this.object = target;
    }

    @Override
    public Object invoke(Object o, Method method, Object[] objects) throws Throwable {
        Object result=method.invoke(object,objects);
        return result;
    }
}
